
package com.sfdlJPush.api;

import java.util.Map;

import android.view.View;

import com.sfdlJPush.controller.api.ApiListenrDefaultImpl;
import com.sfdlJPush.controller.api.B5MBaseRequest;

/**
 * @author yushilong
 * @date 2014-10-14 下午5:31:47
 * @version 1.0
 */
public class GetLatestAppVersionRequest extends B5MBaseRequest<GetLatestAppVersionResponse>
{
    public String type;
    public String version;
    public String os;

    public GetLatestAppVersionRequest(ApiListenrDefaultImpl apiListenrDefaultImpl, View view)
    {
        super(apiListenrDefaultImpl, view);
        // TODO Auto-generated constructor stub
    }

    @Override
    public Class<GetLatestAppVersionResponse> getResponseClass()
    {
        // TODO Auto-generated method stub
        return GetLatestAppVersionResponse.class;
    }

    @Override
    public String getApiMethod()
    {
        // TODO Auto-generated method stub
        return "Company/getLatestAppVersion";
    }

    @Override
    public void setApiBody(Map<String, String> body)
    {
        // TODO Auto-generated method stub
        body.put("type", type);
        body.put("version", version);
        body.put("os", os);
    }
}
